package com.xiaobai.data.manager.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaobai.data.manager.system.ApiAuthorityManager;
import com.xiaobai.data.mapper.system.ApiAuthorityMapper;
import com.xiaobai.model.entity.system.ApiAuthority;
import com.xiaobai.model.vo.system.apiAuthority.ApiAuthorityTreeVO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@AllArgsConstructor
public class ApiAuthorityManagerImpl extends ServiceImpl<ApiAuthorityMapper, ApiAuthority>
    implements ApiAuthorityManager {

    private final ApiAuthorityMapper authorityMapper;

    @Override
    public List<ApiAuthorityTreeVO> getApiAuthorityByUserId(Long id) {
        return authorityMapper.getApiAuthorityByUserId(id);
    }
}
